//
// Decompiled by Jadx - 377ms
//
package gf;

import fn.j;
import fn.x;
import fo.c;
import java.math.BigDecimal;
import java.math.RoundingMode;
import o.a;
import org.luckypray.dexkit.query.matchers.MethodMatcher;
import org.luckypray.dexkit.result.MethodData;

@a("WX")
public final class ah extends x {
    /* JADX WARN: Removed duplicated region for block: B:14:0x0014 A[Catch: Exception -> 0x0028, TryCatch #0 {Exception -> 0x0028, blocks: (B:2:0x0000, B:6:0x0007, B:10:0x0018, B:14:0x0014), top: B:1:0x0000 }] */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0011  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static BigDecimal cp(String str, RoundingMode roundingMode) {
        double d;
        String trim;
        try {
            if (str != null) {
                try {
                    d = Double.parseDouble(str);
                } catch (NumberFormatException unused) {
                    d = 0.0d;
                }
                if (d != 0.0d) {
                    trim = "0";
                } else {
                    trim = str.trim();
                }
                return new BigDecimal(trim).divide(new BigDecimal("100"), 2, roundingMode);
            }
            d = 0.0d;
            if (d != 0.0d) {
            }
            return new BigDecimal(trim).divide(new BigDecimal("100"), 2, roundingMode);
        } catch (Exception unused2) {
            return new BigDecimal(0);
        }
    }

    public final void a() {
        a aVar = new a();
        j.bd("com.tencent.mm.plugin.wallet_core.ui.view.WcPayMoneyLoadingView", "setFirstMoney", new Object[]{String.class, aVar});
        j.bd("com.tencent.mm.plugin.wallet_core.ui.view.WcPayMoneyLoadingView", "setMoney", new Object[]{String.class, aVar});
        j.bd("com.tencent.mm.plugin.wallet_core.ui.view.WcPayMoneyLoadingView", "setNewMoney", new Object[]{String.class, aVar});
        MethodMatcher usingEqStrings = MethodMatcher.create().usingEqStrings(new String[]{"Need to call #setCharacterLists first."});
        Class cls = Boolean.TYPE;
        MethodData t = c.t(usingEqStrings.paramTypes(new Class[]{String.class, cls}));
        j.bd(t.getClassName(), t.getMethodName(), new Object[]{String.class, cls, aVar});
    }
}
